<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" 
CodeBehind="Bodegas.aspx.cs" Inherits="Web.Bodegas" EnableEventValidation="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="/js/jquery.MultiFile.js" type="text/javascript"></script>
<style type="text/css">
    .style1
    {
        height: 204px;
    }
</style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div width="100%">
        <asp:Panel ID="PanelBodega" runat="server" BackColor="White" width="100%" CssClass="pnlPrincipal">
            <asp:HyperLink ID="Titulo_Bodega" runat="server" Font-Bold="True" Font-Size="XX-Large"
                ForeColor="Silver">Bodega</asp:HyperLink>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Image ID="Banner" runat="server" Height="27px" ImageUrl="~/IMG/Banner.jpg" 
                Width="356px" />
            <div align="left">
                <asp:Panel ID="Panel2_Bodega" runat="server" BackColor="#E8E8E8" width="100%" 
                    Height="411px">
                    <table width="100%">
                        <tr>
                            <td style="vertical-align: top" class="style4">
                                <table width="100%" border="0">
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Lbl_Cod_Periodo" runat="server" CssClass="lbl" Text="Periodo" 
                                                align="left"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="Txt_Periodo" runat="server" Width="192px" MaxLength="8" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Lbl_Cod_Bodega" runat="server" align="left" CssClass="lbl" 
                                                Text="Codigo"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:Label ID="Txt_Cod_Bodega" runat="server" align="left" CssClass="lbl" 
                                                Text="Codigo"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Lbl_Glosa_Bodega" runat="server" class="lbl" Text="Glosa"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="Txt_Glosa" runat="server" Width="190px" MaxLength="30"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Lbl_Pasillos" runat="server" class="lbl" Text="Pasillos"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <table style="width: 417px">
                                                <tr>
                                                    <td align="center" class="style2">
                                                        <asp:Label ID="Lbl_Pasillo_Disponible" runat="server" class="lbl" Text="Pasillos"></asp:Label>
                                                    </td>
                                                    <td class="style3">
                                                        &nbsp;
                                                    </td>
                                                    <td align="center">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: left;" class="style2">
                                                    <div style="height:100px;overflow:auto; width: 481px;" >
                                                        <asp:CheckBoxList ID="CheckBoxList_Pasillo_Disponible" runat="server" 
                                                            RepeatColumns="10" RepeatLayout="Flow" class="lbl">
                                                        </asp:CheckBoxList>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td align="right" style="vertical-align: top;" class="style4">
                            <asp:Button runat="server" ID="Btn_Aprobar" CssClass="save"
                                    OnClick="Btn_Aprobar_Click" />
                           <asp:Button ID="btnNuevo" runat="server" CssClass="new" 
                                onclick="btnNuevo_Click1" Text="Button" />
                            </td>
                        </tr>
                        <tr>
                           <td colspan="2" class="style1">
                           <div style="height:200px;overflow:auto;">
                                <asp:GridView ID="GridView_Bodegas" runat="server" AutoGenerateColumns="False" Width="100%"
                                    BorderColor="#E0040B" BorderStyle="Ridge" BorderWidth="2"
                                    onselectedindexchanged="GridView_Bodegas_SelectedIndexChanged" 
                                    OnRowCommand="GridView_Bodegas_RowCommand"
                                   Style="margin-top: 0px" >
                                    <HeaderStyle BackColor="#343434" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="silver"></AlternatingRowStyle>
                                    <Columns>
                                        <asp:TemplateField FooterText="Periodo" HeaderText="Periodo">
                                            <ItemTemplate>
                                            <asp:Label ID="lblPeriodo" runat="server" class="lbl" Text='<%# Bind("Periodo") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="Bodega" HeaderText="Codigo">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" class="lbl" Text='<%# Bind("Codigo_Bodega") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="Glosa" HeaderText="Glosa">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" class="lbl" Text='<%# Bind("Bodega") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="Edicion" HeaderText="Accion">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="Btn_Edit" runat="server" ImageUrl="~/img/edit.gif" AlternateText="Editar" CommandName="Select" onselectedindexchanged="GridView_Bodegas_SelectedIndexChanged" />
                                                 
                                               <asp:ImageButton ID="Btn_Delete" runat="server" AlternateText="Eliminar" 
                                                CommandArgument='<%# Bind("Codigo_Bodega") %>' CommandName="Eliminar" 
                                                ImageUrl="~/img/delete.gif" />
                                              
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                </div>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
